<template>
<view>
	<block v-if="isload">
		<view class="banner" :style="{background:'linear-gradient(180deg,'+t('color1')+' 0%,rgba('+t('color1rgb')+',0) 100%)'}">
		</view>
		<view class="user">
			<image :src="userinfo.headimg" background-size="cover"/>
			<view class="info" v-if="set && set.parent_show == 1">
				<view>
					<view class="nickname">{{userinfo.nickname}}</view>
					<view>{{t('推荐人')}}：{{userinfo.pid > 0 ? userinfo.pnickname : '无'}}</view>
				</view>
			</view>
			<view class="info" v-else>
				 <text class="nickname">{{userinfo.nickname}}</text>
			</view>
		</view>
		<view class="contentdata">
			<view class="data">
				<view class="data_title flex-y-center"><image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m1.png'"/>我的{{t('佣金')}}</view>
				<view class="data_text">
					{{comwithdraw==1?'可提现':'剩余'}}{{t('佣金')}}(元)
				</view>
				<view class="data_price flex-y-center flex-bt">
					<text @tap="goto" data-url="../order/shoporder?st=0">{{userinfo.commission}}</text>
					<view @tap="goto" data-url="withdraw" v-if="comwithdraw==1" class="data_btn flex-xy-center" :style="{background:'linear-gradient(90deg,'+t('color1')+' 0%,rgba('+t('color1rgb')+',0.8) 100%)'}">去提现<image :src="pre_url+'/static/imgsrc/commission_dw.png'"/></view>
					<view @tap="tomoney" v-else-if="commission2money=='1'" class="data_btn flex-xy-center" :style="{background:'linear-gradient(90deg,'+t('color1')+' 0%,rgba('+t('color1rgb')+',0.8) 100%)'}">转到{{t('余额')}}账户<image :src="pre_url+'/static/imgsrc/commission_dw.png'"/></view>
				</view>
				<view class="data_module flex flex-wp">
					<view @tap="goto" data-url="../order/shoporder?st=0" class="data_module_view">
						<view class="data_lable">已提现{{t('佣金')}}(元)</view>
						<view class="data_value">{{count3}}</view>
					</view>
					<view @tap="goto" data-url="../order/shoporder?st=0" class="data_module_view">
						<view class="data_lable">待结算(元)</view>
						<view class="data_value">{{userinfo.commission_yj}}</view>
					</view>
					<view v-if="userinfo.show_totalcommission && userinfo.totalcommission > 0" @tap="goto" data-url="../order/shoporder?st=0" class="flex1">
						<view class="data_lable">累计总佣金</view>
						<view class="data_value">{{userinfo.totalcommission}}</view>
					</view>
				</view>
				<view  class="data_module flex" v-if="(userinfo.baodan_freeze && userinfo.baodan_freeze > 0) || (userinfo.zt_commission && userinfo.zt_commission > 0)">
					<view v-if="userinfo.baodan_freeze && userinfo.baodan_freeze > 0" @tap="goto" data-url="/pagesA/commission/baodanfreezelog" class="flex1">
						<view class="data_lable">报单冻结</view>
						<view class="data_value">{{userinfo.baodan_freeze}}</view>
					</view>
					<view v-if="userinfo.zt_commission && userinfo.zt_commission > 0" @tap="goto" data-url="/activity/commission/commissionlog?st=1" class="flex1">
						<view class="data_lable">直推奖</view>
						<view class="data_value">{{userinfo.zt_commission}}</view>
					</view>
				</view>
				
			</view>
			<view class="data" v-if="hasfenhong">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('股东分红')}}</text>
					</view>
					<view @tap="goto" data-url="fenhong" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">累计分红(元)</view>
						<view class="data_value">{{userinfo.fenhong}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">待结算(元)</view>
						<view class="data_value">{{userinfo.fenhong_yj}}</view>
					</view>
				</view>
				<view class="data_module flex" v-if="userinfo.fenhong_max_show">
					
					<view class="flex1">
						<view class="data_lable">已发分红(元)</view>
						<view class="data_value">{{userinfo.gudong_total}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">待分红(元)</view>
						<view class="data_value">{{userinfo.gudong_remain}}</view>
					</view>
				</view>
			</view>
			<view class="data" v-if="hasfenhong_huiben">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('回本股东分红')}}</text>
					</view>
					<view @tap="goto" data-url="/pagesA/commission/fenhong_huiben" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">累计分红(元)</view>
						<view class="data_value">{{userinfo.fenhong_huiben}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">待结算(元)</view>
						<view class="data_value">{{userinfo.fenhong_yj_huiben}}</view>
					</view>
				</view>
			</view>
			
			<view class="data" v-if="hasteamfenhong && set.teamfenhong_show">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('团队分红')}}</text>
					</view>
					<view @tap="goto" data-url="teamfenhong" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">累计分红(元)</view>
						<view class="data_value">{{userinfo.teamfenhong}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">待结算(元)</view>
						<view class="data_value">{{userinfo.teamfenhong_yj}}</view>
					</view>
				</view>
			</view>
			<view class="data" v-if="hasbusinessteamfenhong && set.business_teamfenhong_show">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('商家团队分红')}}</text>
					</view>
					<view @tap="goto" data-url="/pagesA/commission/business_teamfenhong" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">累计分红(元)</view>
						<view class="data_value">{{userinfo.business_teamfenhong}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">待结算(元)</view>
						<view class="data_value">{{userinfo.business_teamfenhong_yj}}</view>
					</view>
				</view>
			</view>
			<view class="data" v-if="hasteamshouyi && set.teamshouyi_show">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('团队收益')}}</text>
					</view>
					<view @tap="goto" data-url="/pagesA/commission/teamshouyi" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">累计收益(元)</view>
						<view class="data_value">{{userinfo.teamshouyi}}</view>
					</view>
				</view>
			</view>
			
			<view class="data" v-if="hasareafenhong">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('区域代理分红')}}</text>
					</view>
					<view @tap="goto" data-url="areafenhong" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">累计分红(元)</view>
						<view class="data_value">{{userinfo.areafenhong}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">待结算(元)</view>
						<view class="data_value">{{userinfo.areafenhong_yj}}</view>
					</view>
				</view>
			</view>
			
			<view class="data" v-if="set.show_myyeji == 1">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>我的业绩</text>
					</view>
				</view>
				<view class="data_module flex" @tap="goto" data-url="/pagesExt/commission/myyeji">
					<view class="flex1">
						<view class="data_lable">累计(元)</view>
						<view class="data_value">{{userinfo.buymoney}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">本月(元)</view>
						<view class="data_value">{{userinfo.buymoney_thismonth}}</view>
					</view>
					<view class="flex1" v-if="userinfo.showyejicommission && userinfo.yeji_commission > 0">
						<view class="data_lable">业绩奖(元)</view>
						<view class="data_value">{{userinfo.yeji_commission}}</view>
					</view>
				</view>
			</view>
			<view class="data" v-if="userinfo.showxiaoshouyeji ">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>销售业绩</text>
					</view>
				</view>
				<view class="data_module flex" >
					<view class="flex1">
						<view class="data_lable">总业绩(元)</view>
						<view class="data_value" style="font-size: 38rpx;">{{userinfo.totalyeji}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">销售额(元)</view>
						<view class="data_value" style="font-size: 38rpx;">{{userinfo.coupon_yeji}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">收益(元)</view>
						<view class="data_value" style="font-size: 38rpx;">{{userinfo.shouyi}}</view>
					</view>
					<view class="flex1" v-if="userinfo.yeji_commission > 0">
						<view class="data_lable">业绩奖(元)</view>
						<view class="data_value" style="font-size: 38rpx;">{{userinfo.yeji_commission}}</view>
					</view>
				</view>
			</view>
			
			<view class="data" v-if="hasteamfenhong && (teamnum_show==1 || teamyeji_show==1)">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m3.png'"></image>
						<text>{{t('我的团队')}}</text>
					</view>
					<view @tap="goto" data-url="myteam" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1" v-if="teamnum_show==1">
						<view class="data_lable">团队总人数</view>
						<view class="data_value">{{userinfo.teamnum}}</view>
					</view>
					<view class="flex1" v-if="teamyeji_show==1">
						<view class="data_lable">团队单量</view>
						<view class="data_value">{{userinfo.teamOrderCount}}</view>
					</view>
					<view class="flex1" v-if="teamyeji_show==1">
						<view class="data_lable">团队总业绩(元)</view>
						<view class="data_value" v-if="set.show_teamyeji_search == 1" @tap="goto" data-url="/pagesExt/commission/teamyeji">{{userinfo.teamyeji}}</view>
						<view class="data_value" v-else>{{userinfo.teamyeji}}</view>
					</view>
					<view class="flex1" v-if="gongxianfenhong_show==1">
						<view class="data_lable">预计{{userinfo.gongxianfenhong_txt || '股东贡献量分红'}}(元)</view>
						<view class="data_value">{{userinfo.gongxianfenhong}}</view>
					</view>
					<view class="flex1" v-if="set.show_teamyeji_search==1">
						<view class="data_lable">本月(元)</view>
						<view class="data_value" @tap="goto" data-url="/pagesExt/commission/teamyeji">{{userinfo.teamyeji_thismonth}}</view>
					</view>
				</view>
			</view>
			<view class="data" v-if="hastouzifenhong">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('投资分红')}}</text>
					</view>
					<view @tap="goto" data-url="touzifenhong" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">投资金额(元)</view>
						<view class="data_value">{{userinfo.touzimoney}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">累计分红(元)</view>
						<view class="data_value">{{userinfo.touzifenhong}}</view>
					</view>
					
					<view class="flex1">
						<view class="data_lable">待结算(元)</view>
						<view class="data_value">{{userinfo.touzifenhong_yj}}</view>
					</view>
				</view>
			</view>
			<view class="data" v-if="commission_butie">
				<view class="data_title flex-y-center flex-bt">
					<view class="flex-y-center">
						<image class="data_icon" :src="pre_url+'/static/imgsrc/commission_m2.png'"/>
						<text>{{t('分销补贴')}}</text>
					</view>
					<view @tap="goto" data-url="/pagesA/commission/commissionbutie" class="data_detail flex-y-center">
						查看详情<image :src="pre_url+'/static/imgsrc/commission_db.png'"/>
					</view>
				</view>
				<view class="data_module flex">
					<view class="flex1">
						<view class="data_lable">待发放(元)</view>
						<view class="data_value">{{userinfo.butie_total}}</view>
					</view>
					<view class="flex1">
						<view class="data_lable">已发放(元)</view>
						<view class="data_value">{{userinfo.butie_send}}</view>
					</view>
				</view>
			</view>
			
			
			<view class="list">
				<view class="item" @tap="goto" data-url="poster">
					<image :src="pre_url+'/static/imgsrc/commission_i4.png'"></image>
					<view class="flex1">
						<view class="title">
							分享海报
						</view>
						<view class="text">
							邀请好友享收益
						</view>
					</view>
				</view>
				<view class="item" @tap="tomoney" v-if="comwithdraw==1 && commission2money=='1'">
					<image :src="pre_url+'/static/imgsrc/commission_i1.png'"></image>
					<view class="flex1">
						<view class="title">
							{{t('佣金')}}转{{t('余额')}}
						</view>
						<view class="text">
							直接到账
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="downorder" v-if="set.fxorder_show == 1">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							{{t('分销订单')}}
						</view>
						<view class="text">
							查看订单
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="commissionlog" v-if="set.commissionlog_show">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							{{t('佣金')}}明细
						</view>
						<view class="text">
							查看明细
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="commissionrecord" v-if="set.commissionrecord_show">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							{{t('佣金')}}记录
						</view>
						<view class="text">
							查看记录
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="fhorder" v-if="showfenhong && set.fhorder_show">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							分红订单
						</view>
						<view class="text">
							查看订单
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="fhlog" v-if="showfenhong && set.fhlog_show">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							分红记录
						</view>
						<view class="text">
							查看记录
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="/pagesExt/commission/tjbusinessList" v-if="set.tjbusiness_show">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							推荐商家
						</view>
						<view class="text">
							查看记录
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="orderMendian" v-if="showMendianOrder">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							服务订单
						</view>
						<view class="text">
							查看订单
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="commissionlogMendian" v-if="showMendianOrder">
					<image :src="pre_url+'/static/imgsrc/commission_i4.png'"></image>
					<view class="flex1">
						<view class="title">
							服务{{t('佣金')}}
						</view>
						<view class="text">
							查看记录
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="orderYeji" v-if="showYeji">
					<image :src="pre_url+'/static/imgsrc/commission_i3.png'"></image>
					<view class="flex1">
						<view class="title">
							业绩统计
						</view>
						<view class="text">
							查看业绩
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="/pagesExt/agent/cardEdit" v-if="set && set.agent_card == 1">
					<image :src="pre_url+'/static/imgsrc/commission_i10.png'"></image>
					<view class="flex1">
						<view class="title">
							代理卡片
						</view>
						<view class="text">
							查看代理信息
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="/pagesA/agent/priceRate" v-if="set && set.product_price_rate == 1">
					<image :src="pre_url+'/static/imgsrc/commission_i10.png'"></image>
					<view class="flex1">
						<view class="title">
							价格倍率
						</view>
						<view class="text">
							修改商品价格倍率
						</view>
					</view>
				</view>
				<view class="item" @tap="goto" data-url="/pagesA/agent/memberPriceRate" v-if="set && set.member_level_price_rate == 1">
					<image :src="pre_url+'/static/imgsrc/commission_i10.png'"></image>
					<view class="flex1">
						<view class="title">
							价格倍率
						</view>
						<view class="text">
							修改会员等级倍率
						</view>
					</view>
				</view>
			</view>
		</view>
		<view style="width:100%;height:20rpx"></view>
		
		<uni-popup id="dialogInput" ref="dialogInput" type="dialog">
			<uni-popup-dialog mode="input" :title="t('佣金') + '转' + t('余额')" value="" placeholder="请输入转入金额" @confirm="tomonenyconfirm"></uni-popup-dialog>
		</uni-popup>

		<view v-if="showxieyi" class="xieyibox">
			<view class="xieyibox-content">
				<view style="overflow:scroll;height:100%;">
					<parse :content="xycontent" @navigate="navigate"></parse>
				</view>
				<view style="position:absolute;z-index:9999;bottom:10px;left:0;right:0;margin:0 auto;text-align:center; width: 50%;height: 60rpx; line-height: 60rpx; color: #fff; border-radius: 8rpx;" :style="{background:'linear-gradient(90deg,'+t('color1')+' 0%,rgba('+t('color1rgb')+',0.8) 100%)'}"  @tap="hidexieyi">已阅读并同意</view>
			</view>
		</view>

	</block>
	<loading v-if="loading"></loading>
	<dp-tabbar :opt="opt"></dp-tabbar>
	<popmsg ref="popmsg"></popmsg>
</view>
</template>

<script>
var app = getApp();

export default {
  data() {
    return {
			opt:{},
			loading:false,
      isload: false,
			menuindex:-1,
			pre_url:app.globalData.pre_url,
			
      hiddenmodalput: true,
      userinfo: [],
      count: 0,
      count1: 0,
      count2: 0,
      count3: 0,
      count4: 0,
      comwithdraw: 0,
      canwithdraw: true,
      money: 0,
      count0: "",
      countdqr: "",
      commission2money: "",
			showfenhong:false,
			showMendianOrder:false,
			hastouzifenhong:false,
			hasfenhong:false,
			hasareafenhong:false,
			hasteamfenhong:false,
			showYeji:false,
			fxjiesuantime:0,
			teamyeji_show:0,
			teamnum_show:0,
			gongxianfenhong_show:0,
			set:{},
			hasteamshouyi:false,
			commission_money_exchange_num:0,
			hasfenhong_huiben:false,
			hasbusinessteamfenhong:false,
			commission_butie:false,
			showxieyi:false,
			xycontent:'',
    };
  },

  onLoad: function (opt) {
		this.opt = app.getopts(opt);
		var that = this;
		this.getdata();
  },
	onPullDownRefresh: function () {
		this.getdata();
	},
  methods: {
		getdata: function () {
			var that = this;
			that.loading = true;
			app.get('ApiAgent/commissionSurvey', {}, function (res) {
				that.loading = false;
				uni.setNavigationBarTitle({
					title: '我的' + that.t('佣金')
				});
				uni.setNavigationBarColor({
					frontColor: '#ffffff', 
					backgroundColor: that.t('color1') 
				});
				that.userinfo = res.userinfo;
				that.set = res.set;
				that.count = res.count;
				that.count1 = res.count1;
				that.count2 = res.count2;
				that.count3 = res.count3;
				that.count0 = res.count0;
				that.countdqr = res.countdqr;
				that.comwithdraw = res.comwithdraw;
				that.commission2money = res.commission2money;
				that.showfenhong = res.showfenhong;
				that.showMendianOrder = res.showMendianOrder;
				that.hastouzifenhong = res.hastouzifenhong;
				that.hasfenhong = res.hasfenhong;
				that.hasfenhong_huiben = res.hasfenhong_huiben;
				that.hasareafenhong = res.hasareafenhong;
				that.hasteamfenhong = res.hasteamfenhong;
				that.showYeji = res.hasYeji;
				that.fxjiesuantime = res.fxjiesuantime;
				that.teamyeji_show = res.teamyeji_show;
				that.teamnum_show = res.teamnum_show;
				that.gongxianfenhong_show = res.gongxianfenhong_show;
				that.hasteamshouyi = res.hasteamshouyi;
				that.commission_money_exchange_num = res.commission_money_exchange_num;
				that.hasbusinessteamfenhong = res.hasbusinessteamfenhong;
				that.commission_butie = res.commission_butie;
				that.loaded();

				if(res.uplv_agree == 1){
					that.showxieyi = true;
					that.xycontent = res.agree_content;
				}else{
					that.showxieyi = false;
				}

			});
		},
    cancel: function () {
      this.hiddenmodalput = true;
    },
    tomoney: function () {
      this.$refs.dialogInput.open()
    },
    tomonenyconfirm: function (done, val) {
			console.log(val)
      var that = this;
      var money = val;
      if (money == '' || parseFloat(money) <= 0) {
        app.alert('请输入转入金额');
        return;
      }
      if (parseFloat(money) > this.userinfo.commission) {
        app.alert('可转入' + that.t('佣金') + '不足');
        return;
      }
			if(that.commission_money_exchange_num>0){
				var need_score = that.commission_money_exchange_num*money
				if(need_score>0){
					app.confirm('本次操作需要消耗' +need_score+ that.t('积分'),function(){
						done();
						that.exchangeSubmit(money)
					});
				}
			}else{
				done();
				that.exchangeSubmit(money)
			}
    },
		exchangeSubmit:function(money){
			var that = this;
			app.showLoading('提交中');
			app.post('ApiAgent/commission2money', {money: money}, function (data) {
				app.showLoading(false);
			  if (data.status == 0) {
			    app.error(data.msg);
			  } else {
			    that.hiddenmodalput = true;
			    app.success(data.msg);
			    setTimeout(function () {
			      that.getdata();
			    }, 1000);
			  }
			});
		},
		hidexieyi: function () {
			var that = this;
			app.goto('signature');
		},
  }
};
</script>
<style>
.banner{position: absolute;width: 100%;height: 900rpx;}
.user{ display:flex;width:100%;padding:40rpx 45rpx 0 45rpx;color:#fff;position:relative}
.user image{ width:80rpx;height:80rpx;border-radius:50%;margin-right:20rpx}
.user .info{display:flex;align-items: center;}
.user .info .nickname{font-size:32rpx;font-weight:bold;}
.user .set{ width:70rpx;height:100rpx;line-height:100rpx;font-size:40rpx;text-align:center}
.user .set image{width:50rpx;height:50rpx;border-radius:0}

.contentdata{display:flex;flex-direction:column;width:100%;padding:0 30rpx;position:relative;margin-bottom:20rpx}

.data{background:#fff;padding:30rpx;margin-top:30rpx;border-radius:16rpx}
.data_title{font-size: 28rpx;color: #333;font-weight: bold;}
.data_detail{font-size: 24rpx;font-family: Source Han Sans CN;font-weight: 400;color: #999999;font-weight: normal;}
.data_detail image{height: 24rpx;width: 24rpx;margin-left: 10rpx;}
.data_icon{height: 35rpx;width: 35rpx;margin-right: 15rpx;}
.data_text{font-size: 26;color: #999;margin-top: 60rpx;}
.data_price{font-size: 64rpx;color: #333;font-weight: bold;margin-top: 10rpx;}
.data_btn{height: 56rpx;padding: 0 30rpx;font-size: 24rpx;color: #fff;font-weight: normal;border-radius: 100rpx;}
.data_btn image{height: 24rpx;width: 24rpx;margin-left: 6rpx;}
.data_module{margin-top: 60rpx;width: 100%;}
.data_module .data_module_view{min-width: 50%;margin-bottom: 20rpx;}
.data_lable{font-size: 26;color: #999;}
.data_value{font-size: 44rpx;font-weight: bold;color: #333;margin-top: 10rpx;}

.list{ background: #fff;margin-top:30rpx;padding:30rpx;border-radius:16rpx;display: grid;grid-template-columns: repeat(2, 1fr);grid-column-gap: 10rpx;grid-row-gap: 50rpx;}
.list .item{ display:flex;align-items:center;}
.list image{ height: 72rpx;width: 72rpx;margin-right: 20rpx; }
.list .title{font-size: 28rpx;font-family: Source Han Sans CN;font-weight: 500;color: #121212;}
.list .text{font-size: 24rpx;font-family: Source Han Sans CN;font-weight: 400;color: #999999;margin-top: 10rpx;}

.xieyibox{width:100%;height:100%;position:fixed;top:0;left:0;z-index:99;background:rgba(0,0,0,0.7)}
.xieyibox-content{width:90%;margin:0 auto;height:80%;margin-top:10%;background:#fff;color:#333;padding:5px 10px 50px 10px;position:relative;border-radius:2px}
</style>